package com.example.service;

import org.springframework.data.redis.core.RedisTemplate;

import java.util.concurrent.TimeUnit;

public interface RedisService {

    public RedisTemplate getRedisTemplate();

    public void set(String key, byte[] bytes) throws Exception;

    public void set(String key,byte[] bytes, long timeout,  TimeUnit unit);

    public Object get(String key) throws Exception;

    public int getRandom() throws Exception;
}
